//数组
let arr: number[] = [1,2,3]
let arr2:Array<number> = new Array(4)
let arr3 = new Array<number>(4)
interface NumberArray { 
    [index:number]:number
}
let arr4:NumberArray = [1,2,3,4]
// 类数组
function sum(){
    let args:IArguments = arguments
}
// 元组
let tpule1:[number,string,boolean] = [1,"测试",true]

// 区别
function useFetch(){
    const ressponse:string = "王子初"
    const age: number = 30
    return tuplitf(ressponse,age)
}
// 元组转化
function tuplitf<T extends unknown[]>(...elements:T):T{
    return elements
}
const [response] = useFetch()